﻿@using JQueryUIHelpers
@model CS795.TravelAgency.Models.HotelRequestViewModel

@Scripts.Render("~/bundles/jqueryui")

@using (Ajax.BeginForm("RequestHotelQuote", "Trip", new { tripId = ViewBag.TripId }, new AjaxOptions { UpdateTargetId = "hotel-data", LoadingElementId = "loading", OnSuccess = "HotelSuccess" }, new { id = "request-quote-hotel-form", @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary("", new { @class = "text-danger" })
    <div class="form-group">
        @Html.LabelFor(m => m.RoomType, new { @class = "col-md-3 control-label" })
        <div class="col-md-6">
            @Html.DropDownListFor(m => m.RoomType, new SelectList(@ViewBag.RoomTypes), new { @class = "form-control" })
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(m => m.Smoking, new { @class = "col-md-3 control-label" })
        <div class="col-md-6">
            @Html.CheckBoxFor(m => m.Smoking, new { @class = "form-control" })
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(m => m.CheckIn, new { @class = "col-md-3 control-label" })
        <div class="col-md-6">
            @Html.JQueryUI().DatepickerFor(m => m.CheckIn, new { @class = "form-control" })
        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(m => m.CheckOut, new { @class = "col-md-3 control-label" })
        <div class="col-md-6">
            @Html.JQueryUI().DatepickerFor(m => m.CheckOut, new { @class = "form-control" })
        </div>
    </div>
}
